package com.itjiange;

import lombok.Getter;

import java.util.Arrays;
import java.util.List;

/**
 * 菜单 A
 *
 * @author ItJianGe
 * @data 2024/8/26 10:39
 */
@Getter
public class AMenus implements Menu {

    private List<MenuItem> menuItems;

    public AMenus() {
        menuItems = Arrays.asList(
                new MenuItem("【A餐厅】鸡蛋", "鸡蛋的描述", 2),
                new MenuItem("【A餐厅】豆浆", "豆浆的描述", 3),
                new MenuItem("【A餐厅】油条", "油条的描述", 1.5)
        );
    }

    @Override
    public MenuIterator getMenuIterator() {
        return new AMenusIterator(menuItems);
    }
}
